#pragma once

#include <cstring>
#include <iostream>
#include <fstream>
using namespace std;

class Article
{
public:
    Article() { m_number = -1; m_value = 0; strcpy_s(m_description, 20, ""); }
    Article(int number, double value, char description[20]);

    double getValue() const { return m_value; }
    int getNumber() const { return m_number; }
    const char * getDescription() const { return m_description; }
    void setValue(double value) { m_value = value; }
    void setDescription(char description[20]) { strcpy_s(m_description, 20, description); }
    friend ostream & operator<< (ostream & os, const Article & article);
private:
    char m_description[20];
    double m_value;
    int m_number;
};
